<h1>字符函数 - isblank</h1>


  <p>原型：extern int isblank(int c);</p>
  
  <p>用法：#include &lt;ctype.h></p>
  
  <p>功能：判断字符c是否为TAB或空格</p>
  
  <p>说明：当c为TAB或空格时，返回非零值，否则返回零。</p>
  
  举例：<pre><code class="language-c">

      // isalnum.c
      
      #include &lt;syslib.h>
      #include &lt;ctype.h>

      main()
      {
        int c;
        
        clrscr();        // clear screen
        c='a';
        printf("%c:%s\n",c,isalnum(c)?"yes":"no");
        c='7';
        printf("%c:%s\n",c,isalnum(c)?"yes":"no");
        c='@';
        printf("%c:%s\n",c,isalnum(c)?"yes":"no");
      }
      
  </code></pre>相关函数：<a href="isalpha.html">isalnum</a>,<a href="isalpha.html">isalpha</a>,<a href="iscntrl.html">iscntrl</a>,<a href="isgraph.html">isgraph</a>,<a href="isprint.html">isprint</a>,<a href="ispunct.html">ispunct</a>,<a href=isspace.html">isspace</a>

